import java.util.Scanner;
public class Arrays02 {
    public static void main(String[] args) {
        double[] scores = new double[5];

        Scanner myScanner=new Scanner(System.in);
        //循环输入
        for (int i = 0; i < scores.length; i++) {
            System.out.println("请输入第" + (i + 1) + "个元素的值");
            scores[i]=myScanner.nextDouble();
        }
        //输出，遍历数组
        System.out.println("==当前数组元素的值如下：==");
        for(int i=0;i<scores.length;i++){
            System.out.println("第"+(i+1)+"个元素的值="+scores[i]);
        }
    }
}
